from django.utils import timezone
from django.db import models
class User(models.Model):
    email = models.EmailField(max_length=254, unique=True,verbose_name="邮箱")
    password = models.CharField(max_length=254, default="",verbose_name="密码")
    account = models.CharField(max_length=254, null=True, blank=True,unique=True,verbose_name="账号")
    nickname = models.CharField(max_length=254, null=True, blank=True,default="请设置昵称",verbose_name="昵称")
    iconUrl = models.CharField(max_length=254, null=True, blank=True,default="头像URL",verbose_name="头像URL")
    createTime = models.DateTimeField(default=timezone.now, verbose_name='创建时间', null=False, blank=False)

